package com.example.demo.mapper;

import com.example.demo.dao.Roleurl;
import com.example.demo.dao.User;

import java.util.List;

import com.example.demo.dao.UserRole;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface UserMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    List<User> indexselect();

    User login(String username, String password);

    //权限列表遍历
    List<UserRole> listroleid();
    //权限匹配url表遍历
    List<Roleurl> urllist();
    //根据url匹配对应的权限
    Roleurl urlpid(String url);
}
